<?php
/**
 * Created by PhpStorm.
 * User: zhangrxiang
 * Date: 2016/10/11
 * Time: 14:51
 * Project name: PHPTEST
 * File name: function.php
 * @copyright Copyright (c) 2016 ZRX Software LLC
 * @license   https://github.com/zhangrxiang
 * @since
 */


function isGET(){
	if($_SERVER['REQUEST_METHOD'] === 'GET'){
		return true;
	}else{
		return false;
	}
}
function isPOST(){
	if($_SERVER['REQUEST_METHOD'] === 'POST'){
		return true;
	}else{
		return false;
	}
}